package com.ylc.proxy2;

/**
 * @Author: ylc
 * @Description:
 * @Date Created in 2022-07-18 15:11
 */
public class SubBookServiceImpl extends BookServiceImpl{
    @Override
    public void buy() {
        try {
            //切面部分:
            System.out.println("事务开启................");
            super.buy();
            //切面部分:
            System.out.println("事务提交................");
        } catch (Exception e) {
            //切面部分:
            System.out.println("事务回滚................");
        }
    }
}
